<div class="list_document" style=" font-size: 14px;">

<?php
for($i = 0; $i < count($data); $i++){
 $document = $data[$i];
 $date = DateTime::createFromFormat('Y-m-d', $document['Ngay']);
?>  <div style='width: 97%; padding-right: 3%; float: left;'><hr /></div>
    <div class='title_ideal' style='line-height: 25px; font-size: 16px; float: left; '><?php echo "<b>".$document['TieuDe']."</b>"; ?> </div>
    <div class='content_ideal' style='width: 97%; float: left;' ><?php echo $date->format('Y/m/d')." - ".$document['Mota'] ?></div>
    <div class='detail_ideal' style='margin-right: 3%; float: right;'><a href='<?php echo base_url('nhanvien/document/download/'.$document['URL']); ?>'>dowload tài liệu</a></div>

<?php }?>
<div style='width: 97%; padding-right: 3%; float: left;'><hr /></div>
<div class="pagination" style="width: 100%; float: left; text-align: center; "><?php echo $links; ?></div>
</div>